package com.ruoyi.house.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 地区表
 * @TableName mf_district
 */
@TableName(value ="mf_district")
@Data
public class MfDistrict {
    /**
     * 自增id
     */
    @TableId(type = IdType.AUTO)
    private Long districtId;

    /**
     * 父及关系
     */
    private Long pid;

    /**
     * 地区名称
     */
    private String district;

    /**
     * 子属关系
     */
    private Integer level;

    @TableField(exist = false)
    private Integer communityId;
    @TableField(exist = false)
    private String communityName;

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }
}